<template>
  <div class="app">
    <Header/>
    <router-view></router-view>
    <!-- 如果路由配置的meta为true则显示   否不显示   Footer组件 -->
    <Footer v-show="$route.meta.show"/>
  </div>
</template>

<script>
import Header from '@/components/Header/Header.vue'
import Footer from '@/components/Footer/Footer.vue'
export default {
  name:'App',
  mounted() {
     this.$store.dispatch("home/get_list");
  },
  components:{
    Header,
    Footer,
  }
}
</script>

<style>

</style>
